package org.crystal.tradecraft.model.binance.market;

import lombok.Builder;

import java.time.Instant;

/**
 * <h3>K线数据</h3>
 * openTime - 开盘时间<p>
 * openPrice - 开盘价<p>
 * highPrice - 最高价<p>
 * lowPrice - 最低价<p>
 * closePrice - 收盘价(当前K线未结束的即为最新价)<p>
 * volume - 成交量<p>
 * kLineCloseTime - 收盘时间<p>
 * amount - 成交额<p>
 * numberOfTrades - 成交笔数<p>
 * takerBuyVolume - 主动买入成交量<p>
 * takerBuyAmount - 主动买入成交额
 */
@Builder
public record KLine(
    Instant openTime,
    double openPrice,
    double highPrice,
    double lowPrice,
    double closePrice,
    double volume,
    Instant closeTime,
    double amount,
    int numberOfTrades,
    double takerBuyVolume,
    double takerBuyAmount
) {
    
}
